import os


def del_files_by_path(path):
    """
    删除文件夹下的所有文件，不包含文件夹
    :param path: 需要删除的文件夹
    """
    ls = os.listdir(path)
    for i in ls:
        c_path = os.path.join(path, i)
        if os.path.isdir(c_path):
            del_files_by_path(c_path)
        else:
            os.remove(c_path)
